import {GaoDeUrl} from './URL'
import axios from 'axios'
// 请求体
export default {
    async pubulicHttp({type, method, re}) {
        let requestUrl=''
        switch (type) {
            case 1:
                requestUrl=GaoDeUrl+'address='+re.address
                break;
        }
        const {data} = await axios({
            url: requestUrl,
            method: method ? method : 'GET',
            data:  type===1? {}:re,
            headers: {'Content-Type': 'application/json;charset=UTF-8'}
        })
        return data
    }
}
